package com.taiyuan.tongcheng.widget.dialog;

import com.taiyuan.tongcheng.widget.dialog.anim.BaseEffects;
import com.taiyuan.tongcheng.widget.dialog.anim.FadeIn;
import com.taiyuan.tongcheng.widget.dialog.anim.Fall;
import com.taiyuan.tongcheng.widget.dialog.anim.FlipH;
import com.taiyuan.tongcheng.widget.dialog.anim.FlipV;
import com.taiyuan.tongcheng.widget.dialog.anim.NewsPaper;
import com.taiyuan.tongcheng.widget.dialog.anim.RotateBottom;
import com.taiyuan.tongcheng.widget.dialog.anim.RotateLeft;
import com.taiyuan.tongcheng.widget.dialog.anim.Shake;
import com.taiyuan.tongcheng.widget.dialog.anim.SideFall;
import com.taiyuan.tongcheng.widget.dialog.anim.SlideBottom;
import com.taiyuan.tongcheng.widget.dialog.anim.SlideLeft;
import com.taiyuan.tongcheng.widget.dialog.anim.SlideRight;
import com.taiyuan.tongcheng.widget.dialog.anim.SlideTop;
import com.taiyuan.tongcheng.widget.dialog.anim.Slit;


/**
 * 
* @Description ���򶯻�Ч��
* @author wzq
* @date 2015-6-26 ����11:07:14
* @update (date)
* @version V1.0
 */
public enum  Effectstype {

    Fadein(FadeIn.class),
    Slideleft(SlideLeft.class),
    Slidetop(SlideTop.class),
    SlideBottom(SlideBottom.class),
    Slideright(SlideRight.class),
    Fall(Fall.class),
    Newspager(NewsPaper.class),
    Fliph(FlipH.class),
    Flipv(FlipV.class),
    RotateBottom(RotateBottom.class),
    RotateLeft(RotateLeft.class),
    Slit(Slit.class),
    Shake(Shake.class),
    Sidefill(SideFall.class);
    private Class effectsClazz;

    private Effectstype(Class mclass) {
        effectsClazz = mclass;
    }

    public BaseEffects getAnimator() {
        try {
            return (BaseEffects) effectsClazz.newInstance();
        } catch (Exception e) {
            throw new Error("Can not init animatorClazz instance");
        }
    }
}
